import request from '/@/utils/request.ts';

export function getOauthClientList(params: object) {
	return request({
		url: 'plat/oauthClient/page',
		method: 'get',
		params,
	});
}

export function addOauthClient(data: object) {
	return request({
		url: 'plat/oauthClient/',
		method: 'POST',
		data: data,
	});
}

export function getOauthClientInfo(clientId: any) {
	return request({
		url: `plat/oauthClient/${clientId}`,
		method: 'GET',
	});
}

export function editOauthClient(data: object, clientId: any) {
	return request({
		url: `plat/oauthClient`,
		method: 'PUT',
		data: data,
	});
}

export function delOauthClient(clientId: any) {
	return request({
		url: `plat/oauthClient/${clientId}`,
		method: 'DELETE',
	});
}
